<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
       xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
<link href="../resources/css/main.css" rel="stylesheet" type="text/css" />
</h:head>   
<body>
	<div class="contenitore">
 		<div class="riga">
  			<div class="colonna-1">
				<img id="immagine" src="../resources/images/logo.jpg" alt="" />
		    </div>
  			<div class="colonna-1-2">
  				<h1>Administration Panel</h1>	
 				<h:outputText id="welcometext" value="Pannello dedicato alla gestione e creazione dei contenuti del sito TravelDream"></h:outputText>
  			</div>
 	    </div>
 	    <div id="riga2">
  			<div class="colonna-2-1">
  				<h:form>
				    <p:commandButton action="#{logoutBean.logout}" value="Logout" />
				</h:form>
  			</div>
  			<div class="colonna-2-2">
  				<h:form>
	              <div id="standard">
		     <p:panel header="Aggiunta Trasporto">
		
		     <h:panelGrid columns="2" id="regGrid">
				<h:outputLabel for="cittaArrivo">Citta Arrivo:</h:outputLabel>
				<p:inputText id="cittaArrivo" value="#{gestioneTransportLocal.current.cittaArrivo}"/>
						 
			    <h:outputLabel for="cittaPartenza"> Citta Partenza:</h:outputLabel>
				<p:inputText id="cittaPartenza" value="#{gestioneTransportLocal.current.cittaPartenza}" />
				
				<h:outputLabel for="dataPartenza">Data Partenza:</h:outputLabel>								
				<p:inputText id="dataPartenza" value="#{gestioneTransportLocal.current.dataPartenza}">
					<f:convertDateTime dateStyle="short" type="both" locale="it"/>
				</p:inputText>
				
				<h:outputLabel for="durata">Durata:</h:outputLabel>
		        <p:inputText id="durata" value="#{gestioneTransportLocal.current.durata}"><f:convertNumber pattern="#,##0.00;(#,##0.00)" /></p:inputText>
		        
		        <h:outputLabel for="frequenza">Frequenza:</h:outputLabel>
		        <p:inputText id="frequenza" value="#{gestioneTransportLocal.current.frequenza}"/> 
				
				<h:outputLabel for="nome">Nome:</h:outputLabel>
		        <p:inputText id="nome" value="#{gestioneTransportLocal.current.nome}"/>
		        
		        <h:outputLabel for="nPosti">Numero Posti:</h:outputLabel>
		        <p:inputText id="nPosti" value="#{gestioneTransportLocal.current.NPosti}"/>
		             
		        <h:outputLabel for="prezzo">Prezzo:</h:outputLabel>
		        <p:inputText id="prezzo" value="#{gestioneTransportLocal.current.prezzo}"> <f:convertNumber pattern="#,##0.00;(#,##0.00)" /></p:inputText>
				
				<p:commandButton value="Submit" action="#{gestioneTransportLocal.create()}" />
								        
		      </h:panelGrid> 
		    
	     </p:panel> 
	</div>	     
	
</h:form>
  	    </div>
  			<div class="colonna-2-3">
  				<h:panelGrid columns="1" cellpadding="10">
  					<h:form>
      				<p:commandButton id="button" action="showhotel" value="Mostra tutti gli Hotel" ajax="false"/>
      				<p:commandButton action="showtransport" value="Mostra tutti i Trasporti" ajax="false"/>
      				<p:commandButton action="showexcursion" value="Mostra tutte le Escursioni" ajax="false"/>
      				<p:commandButton action="showpacchetto" value="Mostra tutti i Pacchetti" ajax="false"/>
      				</h:form>
      			</h:panelGrid>
      			<h:panelGrid columns="1" cellpadding="10">
      				<h:form>
      				<p:commandButton action="creahotel" value="+Crea Hotel" ajax="false"/>
      				<p:commandButton action="creatrasporto" value="+Crea Trasporto" ajax="false"/>
      				<p:commandButton action="creaescursione" value="+Crea Escursione" ajax="false"/>
      				<p:commandButton action="creapacchetto" value="+Crea Pacchetto" ajax="false"/>
      				</h:form>
      			</h:panelGrid>
  		   </div>
 		</div>
 	</div>
	



</body>
</html>